﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using Maticsoft.Common;
using LTP.Accounts.Bus;
namespace lcs.Web.fmbug
{
    public partial class Add : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSave_Click(object sender, EventArgs e)
        {

            string strErr = "";
            int out_storage_detail_Id = 0;
            if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
            {
                int.TryParse(Request.Params["id"].Trim(), out out_storage_detail_Id);

                string obcontent = this.txtobcontent.Text;
                DateTime inputtime = DateTime.Now;
                lcs.Model.fmbug model = new lcs.Model.fmbug();
                model.out_storage_detail_Id = out_storage_detail_Id;
                model.obcontent = obcontent;
                model.inputtime = inputtime;

                lcs.BLL.fmbug bll = new lcs.BLL.fmbug();
                bll.Add(model);
                Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功！", "list.aspx?id="+out_storage_detail_Id);
            }
            else
            {
                Maticsoft.Common.MessageBox.Show(this, "参数不对！");

            }

        }


        public void btnCancle_Click(object sender, EventArgs e)
        {
            Response.Redirect("list.aspx");
        }
    }
}
